<?php

namespace App\Models;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Wechat extends Model
{
    use SoftDeletes;

    public $table = 'wechats';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'type',
        'app_id',
        'secret',
        'pay_merchant_id',
        'pay_key',
        'pay_cert_path',
        'pay_key_path',
        'pay_notify_url',
        'admin_id',
        'shop_id',
    ];

    public function shop()
    {
        return $this->belongsTo('App\Models\Shop');
    }
}
